package com.cgtong.android.adapter;

import android.support.annotation.Nullable;

import com.cgtong.android.R;
import com.cgtong.android.bean.DayReportBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by chunc on 2017/10/21.
 */

public class ProblemCountDailyAdapter extends BaseQuickAdapter<DayReportBean, BaseViewHolder> {


    public ProblemCountDailyAdapter(@Nullable List<DayReportBean> data) {
        super(R.layout.adapter_problem_count, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DayReportBean item) {

        helper.setText(R.id.total_num_txt, item.getProblemNum()+"");
        helper.setText(R.id.date_txt, item.getDate());
    }
}
